<template>

  <div><HoutList :newsList="newsList"></HoutList></div>

</template>

<script>
import {houtNews} from "@/http/api";
import HoutList from "@/components/HoutList";

export default {
name: "HotNews",
  data(){
  return{
    newsList:[],
  }
  },
  components:{
    HoutList
  },
  created() {
    houtNews(1).then(res=>{
      // console.log(res)
      this.newsList = res.data.rows
    }),
    sessionStorage.removeItem('value')
  },
  mounted() {
    document.documentElement.scrollTop = 0
    document.body.scrollTop = 0
  }
}
</script>

<style scoped>

</style>